import fetch from '@/util/fetch'
// sendRedPacket
export function create_red_packet_post(options) {
  return fetch({
    url: 'app/share_redpacket/create_red_packet',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}

// receiveRedPacket
export function receive_red_packet_post(options) {
  return fetch({
    url: 'app/share_redpacket/receive_red_packet',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}

// receivedRecord
export function received_record_post(options) {
  return fetch({
    url: 'app/share_redpacket/received_record',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}
